/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package session.stateless;

import entity.Job;
import entity.PurchaseItem;
import entity.Quotation;
import entity.QuotationItem;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import javax.ejb.Local;

/**
 *
 * @author jackie
 */
@Local
public interface JobSessionBeanLocal {
    public void addJob (Long custId, String userId,List <Quotation> quotations, Timestamp jobDate, 
            Long selectedQuotationId, String description, String type);
    public Job getJob (Long jobId);
    public ArrayList <Job> getJobs ();
    public ArrayList <Job> getJobs (String userId, Boolean processing);
    public void updateJob (Long jobId, Long custId, String userId,List <Quotation> quotations, Timestamp jobDate, 
            Long selectedQuotationId, String description, String type, Long purchaseOrderId);
    public void completeJob (String jobId,Long selectedQuotationId);
    public void updateQuotation(Long id, QuotationItem qi);
    public Quotation getQuotation(Long id);
//    public void updateQuotationItems(List<QuotationItem> quotationItems, Long id);
    public QuotationItem getQuotationItem(Long id);
    public void updateJob(Long id, Quotation q);
    public void updateQuotation(Long id, double quotationTotalAmount, double quotationSubTotal, double quotationTotalShipping, String remark);
    public void updateQuotation(Long id, String remark);
    public void deleteQuotationItem(Long quotationId, Long quotationItemId);
    public ArrayList<Quotation> getQuotations();
    public void updatePurchaseOrder (Long id, Long purchaseOrderId);
    
    public void rejectPurchaseOrder (Long jobId);
    public Job getJob (PurchaseItem poi);
    
   
}
